#ifndef _ADC_H
#define _ADC_H


void InitADC(void);
void StartADCConversion(BYTE Channel,BOOL InterruptWhenComplete);
void CaptureSensors(void);

typedef struct
{
    BYTE IR[16];
    BYTE Accel[3];
    BYTE Batt;
    DWORD RPM;
    BYTE Pot;
} SensorData;

void   FlopSensorDataBuffers(void);
void   InitSensorCapture(void);

extern SensorData *CurrentSensorData;
#endif